home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MACD 5
/
MACD 5.bin
/
workbench
/
libs
/
unixlib.lha
/
unix
/
src
/
lseek.c
< prev
next >
Wrap
C/C++ Source or Header
|
1996-01-04
|
242b
|
15 lines
#include "amiga.h"
#include "files.h"
#include <fcntl.h>
int __lseek(int fd, long rpos, int mode)
{
struct fileinfo *fi;
__chkabort();
if (fi = _find_fd(fd)) {
return fi->lseek(fi->userinfo, rpos, mode);
}
return -1;
}